#!/usr/bin/python



import xpcom
from xpcom import *


print "xul_test2 loading"



def refreshTags():
	
	print "refreshTags()"
	my_menu = document.getElementById("tag-popup")#existags-popup")
	first = createMenuItem("Premier choix")
	my_menu.appendChild(first)


def createMenuItem(label):
	# xul_ns = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
	item = document.createElement('menuitem')
	item.setAttribute("label", label)
	return item



print "xul_test2 loaded"





